var mongoose = require('mongoose');

mongoose.connect('mongodb://localhost/test',{useMongoClient:true});


var donation = mongoose.Schema({
    user: Number,
    donation: Number,
    date: Date
});

var user = mongoose.Schema({
    id : Number,
    user: Object
});

module.exports = {
    mongoose: mongoose,
    donation: donation,
    user: user
};